# vim: ft=snippets

snippet title "Title transformation"
${1:a text}
${1/\w+\s*/\u$0/}
endsnippet

snippet title "Titlelize in the Transformation"
${1:a text}
${1/\w+\s*/\u$0/g}
endsnippet

snippet ascii "Replace non ascii chars"
${1: an accentued text}
${1/.*/$0/a}
endsnippet

snippet printf
printf("${1:%s}\n"${1/([^%]|%%)*(%.)?.*/(?2:, :\);)/}$2${1/([^%]|%%)*(%.)?.*/(?2:\);)/}
endsnippet


clearsnippets
clearsnippets trigger1 trigger2

priority -1
snippet example "Cleared example"
endsnippet

snippet trigger_word "description" "expression" options
endsnippet

context "python_expression: 1 + 2 / 3"
snippet trigger_word "description" options
